/** 
 *
 * @author ilya portnyagin iportnyagin@gmail.com
 */


package ru.portnyagin.helpdeskru.controller.customer;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import ru.portnyagin.helpdeskru.controller.SearchController;


@ManagedBean(name = "customerSearch")
@ViewScoped
public class CustomerSearchController extends SearchController{


    
    public CustomerSearchController() {
        actionString = "/customer/search";
//        organization = curUser.getOrganization(); // curUser здесь null, т.к. инициализируется позже в @PostConstruct SearchController        
    }
 

    @PostConstruct
    private void postConstruct() {
        organization = curUser.getOrganization(); // curUser инициализируется в @PostConstruct SearchController
    }


    
}
